
package com.compuvest.web;

public class ShipRate implements java.io.Serializable {

    private String shipCode;
    private String description;
    private String day;
    private double shipPrice;
    private double shipAddPrice;

    public ShipRate() {
    }

    public ShipRate(String shipCode, String description, String day) {
	this.shipCode = shipCode;
	this.description = description;
	this.day = day;
    }

    public ShipRate(String shipCode, String description, double price) {
	this.shipCode = shipCode;
	this.description = description;
	this.shipPrice = price;
    }

    public String getShipCode()			{ return shipCode; }
    public void setShipCode(String shipCode)	{ this.shipCode = shipCode; }

    public String getDescription()		{ return description; }
    public void setDescription(String desc)	{ this.description = desc; }

    public String getDay()			{ return day; }
    public void setDay(String day)		{ this.day = day; }

    public double getShipPrice()	{ return shipPrice == 0d ? 0d : shipPrice + shipAddPrice; }
    public void setShipPrice(double shipPrice, double shipAddPrice) {
	this.shipPrice = shipPrice;
	this.shipAddPrice = shipAddPrice;
    }
}
